﻿using Domain.Entitys.Pinv;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.IRepositorys.Pinv
{
    public interface IPbRepository
    {
        int GetPbCount(string Pb_code, string Vendor_name);//条件查询总条数

        List<Pb_details_Order> GetPbFyWhere(string Pb_code, string Vendor_name, int currentPage, int pageSize);//分页条件查询数据

        Task<int> PutPbDelete(Pinv_pb pinv_Pb);//删除

        Task<List<Pinv_purwhsedetail>> Getpurwhsedetailwherecode(string code);// 根据code进行审核

        Task<int> PostPbAdd(Pinv_pb pinv_Pb, List<Pinv_purwhsedetail> pinv_Purwhsedetails);//添加

        Task<int> PutPodetails_Pb_PbdetailsUpdate(Pinv_Po pinv_Po, List<pinv_details> pinv_Details, Pinv_pb pinv_Pb, List<Pinv_purwhsedetail> pinv_Purwhsedetail);//审核通过后修改采购订单状态以及采购明细等四张表

        Task<int> PutPoUpdateAudit(Pinv_pb pinv_pb);//根据id进行审核

        Task<int> PutPbUpdate(Pinv_pb pinv_pb, List<Pinv_purwhsedetail> pinv_Purwhsedetail);//修改

        List<Pb_details_Order> GetPbFyWhereinfo(string Pb_code, string Vendor_name, int currentPage, int pageSize);//分页条件查询数据(详情版)

        int GetPbCountinfo(string Pb_code, string Vendor_name);//条件查询总条数(详情版)
    }
}
